import request from '@/utils/request'

export const chatListApi = () => request({
    url: "/admin_api/chat_list/",
    method: "get"
})

export const historyApi = (uuid, params) => request({
    url: `/admin_api/history_message/${uuid}/`,
    method: "get",
    params
})

export const groupHistoryApi = (uuid, params) => request({
    url: `/admin_api/group_history_message/${uuid}/`,
    method: "get",
    params
})

export const addMemberApi = (uuid, data) => request({
    url: `/admin_api/group_members/${uuid}/add/`,
    method: "post",
    data
})

export const removeMemberApi = (uuid, data) => request({
    url: `/admin_api/group_members/${uuid}/remove/`,
    method: "post",
    data
})

export const memberListApi = (uuid) => request({
    url: `/admin_api/group_members/${uuid}/`,
    method: "get"
})

export const userListApi = () => request({
    url: '/admin_api/user_list/',
    method: "get"
})
